const PAGE_SWITCH_TRESHOLD = 0.2;
const PAGE_SWITCH_TIME = 0.3;
+const VIEWS_SWITCH_TIME = 0.4;
+const VIEWS_SWITCH_ANIMATION_DELAY = 0.1;
+
function _getCategories(info) {
let categoriesStr = info.get_categories();
if (!categoriesStr)
Tweener.addTween(children[i],
{ translation_x: 0,
time: INDICATORS_BASE_TIME + delay * i,
- transition: 'easeInOutQuad'
+ transition: 'easeInOutQuad',
+ delay: VIEWS_SWITCH_ANIMATION_DELAY
});
}
}
_showView: function(activeIndex) {
for (let i = 0; i < this._views.length; i++) {
let actor = this._views[i].view.actor;
- let params = { time: OverviewControls.SIDE_CONTROLS_ANIMATION_TIME,
- opacity: (i == activeIndex) ? 255 : 0 };
+
+ let params = { time: VIEWS_SWITCH_TIME,
+ opacity: (i == activeIndex) ? 255 : 0,
+ delay: (i == activeIndex) ? VIEWS_SWITCH_ANIMATION_DELAY : 0 };
if (i == activeIndex)
actor.visible = true;
else